import App from "./App.vue";
import router from "./router";
import VueI18n from "vue-i18n";
import { messages } from "./views/i18n";
import "./plugins/element";
// import './assets/css/theme-green/index.css'; // 浅绿色主题
import "./assets/css/icon.css";
import "./views/directives";
import { library } from "@fortawesome/fontawesome-svg-core";
import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
import {fas} from "@fortawesome/free-solid-svg-icons";
import {far} from "@fortawesome/free-regular-svg-icons";
import {fab} from "@fortawesome/free-brands-svg-icons";
library.add(fas);
library.add(far);
library.add(fab);
Vue.component("font-awesome-icon", FontAwesomeIcon);
// import 'babel-polyfill';
import axios from "./plugins/request/http";
Vue.config.productionTip = false;
Vue.use(VueI18n);
Vue.prototype.$axios = axios;
const i18n = new VueI18n({
  locale: "zh",
  messages
});

new Vue({
  router,
  i18n,
  render: h => h(App)
}).$mount("#app");
